<!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
    </head>

    <body>

        <script>
            class M {
                f1() { }
                f2 = () => true
            }
            let a = new M();
            let b = new M();
            console.log(a.f1 == b.f1);
            console.log(a.f2 == b.f2);
            b.f2 = () => {
                return false;
            }
            console.log(a.f2());
        </script>
    </body>

    </html>